package com.workcell.workdata.xthings.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@ApiModel(value = "DeviceReplaceVo", description = "设备替换vo")
@Data
public class DeviceReplaceVo {

    @NotEmpty(message = "主设备编号不能为空")
    @ApiModelProperty(value = "主设备编号")
    private String masterDeviceNo;

    @NotEmpty(message = "主设备类型不能为空")
    @ApiModelProperty(value = "主设备类型")
    private String masterHardwareType;

    @NotEmpty(message = "旧子设备编号不能为空")
    @ApiModelProperty(value = "旧子设备编号")
    private String oldSlaveDeviceNo;

    @NotEmpty(message = "旧子设备类型不能为空")
    @ApiModelProperty(value = "旧子设备类型")
    private String oldSlaveHardwareType;

    @NotEmpty(message = "新子设备编号不能为空")
    @ApiModelProperty(value = "新子设备编号")
    private String newSlaveDeviceNo;

    @NotEmpty(message = "新子设备类型不能为空")
    @ApiModelProperty(value = "新子设备类型")
    private String newSlaveHardwareType;
}
